<template>
  <router-view />
</template>
<script>
// 1.引用proivde
import { provide } from "vue";
// 2.引用echarts
import * as echarts from "echarts";
import axios from "axios";
axios.defaults.baseURL = "http://127.0.0.1:3000";
export default {
  setup() {
    provide("echarts", echarts); //第一个参数是名字随意取 第二个参数是你传递的内容
    provide("axios", axios);
  },
};
</script>

<style lang="less">
body {
  background: url("~@/assets/bg.jpg") top center no-repeat;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
</style>
